@extends('layouts.atr')
@section('content')

<a class="btn btn-primary" href="/add">添加文章</a>
@foreach( $boke as $art)
<div class="panel panel-default">
    <div class="panel-body">
        {{$art->title}}
        <a href="/read/{{$art->id}}" class="btn btn-info">阅读</a>
        <a href="/update/{{$art->id}}" class="btn btn-info">修改</a>

        <form action="/del" method="post" style="display: inline-block;">
            {{csrf_field()}}
            <input type="hidden" name="id" value="{{$art->id}}">
            <button type="submit" class="btn btn-danger">删除</button>
        </form>
    </div>
</div>
@endforeach
    {!!$boke->render() !!}
@endsection
